package de.steric.battlemon;

import org.lwjgl.util.vector.Vector3f;

import de.steric.battlemon.collision.Collider;
import de.steric.battlemon.rendering.Graphics;
import de.steric.battlemon.rendering.Mesh;
import de.steric.battlemon.rendering.MeshRenderer;

public class StaticObject extends GameObject {
	public boolean isVisible;
	public StaticObject(String meshName) throws Exception
	{
		super();
		MeshRenderer mr=new MeshRenderer();
		
		mr.mesh=Graphics.graphics.getMesh(meshName);
		collider = new Collider(this, new Vector3f(0,0,0),new Vector3f(1,1,1));//MISSING PARAMETERS
		isVisible=true;
	}
	
	
	protected void render()
	{
		if(isVisible)
			renderer.render(this,Graphics.graphics.camera);
	}
}
